'''
html request
'''
from flask import Flask, request

app = Flask(__name__)

@app.route('/')
def hello_world():
    return "Hello World!"

@app.route('/register', methods=['POST'])
def register():
    print(request.headers)
    #print(request.stream.read())
    print(request.form['name'])
    print(request.form.get('name'))
    print(request.form.getlist('name'))
    print(request.form.get('lastname', 'none'))
    return "Welcome"

if __name__ == '__main__':
    app.run(port=5000, debug=True)